Skip to content

added handling for windows on webkit for mouse right click#41361

Closed
GeneratorX16 wants to merge 1 commit into
microsoft:mainfrom
GeneratorX16:bug/webkit-right-click
Closed

added handling for windows on webkit for mouse right click#41361
GeneratorX16 wants to merge 1 commit into
microsoft:mainfrom
GeneratorX16:bug/webkit-right-click

Conversation

@GeneratorX16

Copy link
Copy Markdown
Contributor

Current Behaviour

When a right click is done on webkit in windows, it opens up the "Inspect Element" option without propagating the click unlike in other browsers and platform.

New Behaviour

The right click will be propagated and the "Inspect Element" options will be opened too

fixes #39246

@GeneratorX16 GeneratorX16 marked this pull request as draft June 18, 2026 17:08
@GeneratorX16 GeneratorX16 marked this pull request as ready for review June 20, 2026 15:25
@dgozman

dgozman commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

@yury-s Could you please take a look?

@Skn0tt Skn0tt requested a review from yury-s June 29, 2026 12:11
@yury-s

yury-s commented Jul 1, 2026

Copy link
Copy Markdown
Member

Thanks for digging into this! Unfortunately this approach doesn't fix the underlying issue. The problem in #39246 isn't that the right-click's mousedown fails to propagate — the page already receives it. It's that on the non-Cocoa WebKit port the right click opens a native modal context menu that swallows the following left click (which never reaches the page at all). Re-dispatching the mousedown doesn't dismiss that menu, so the reported bug remains, and it also double-fires mousedown on every right click. The real fix needs to prevent/dismiss the native context menu under automation, which we'll handle at the browser-patch level. Closing this one — thanks again for the investigation.

@yury-s yury-s closed this Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: right-clicking breaks following clicks on webkit

3 participants